<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
	td{font-size: 13px}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<s:head theme="ajax"/>
</head>
<body>
		<%--
	 	<div style="position: fixed;top:150px; left:600px; font-size: 20px;">
	 		<table>
	 			<tr>
	 				<td><strong>개인정보 수정</strong></td>
	 			</tr>	
	 		</table>
	 	</div>
	 	 --%>
		<form action="/ssteam/user/update_ok.team" method="post" enctype="multipart/form-data">
		<table border="1" width="600" height="400">
			<caption>개인정보 수정</caption>					
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					부서&nbsp;
				</td>
				<td width="80%" align="left">
					<%--삼항연산자이용 해당되는 옵션이 선택되어 있도록 selected옵션을 준다 --%>
					<select name="deptno" disabled="disabled">
						<s:iterator value="dlist">
							<option value="${deptno }" ${deptno==vo.deptno?" selected":"" }>${dname}</option>							
						</s:iterator>
					</select>					
				</td>				
			</tr>
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					직급&nbsp;
				</td>
				<td width="80%" align="left">
					<select name="jobno" disabled="disabled">
						<s:iterator value="jlist">
							<option value="${jobno }" ${jobno==vo.jobno?" selected":"" }>${jname}</option>
						</s:iterator>
					</select>
				</td>				
			</tr>
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					사번&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="sabun" value="${vo.sabun }" disabled="disabled" >
				</td>				
			</tr>			
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					이름&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="name" value="${vo.name }" disabled="disabled">
				</td>				
			</tr>
			<%--	
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					입사일&nbsp;
				</td>
				<td width="80%" align="left">
					<s:date name="vo.regdate" format="yyyy-MM-dd"/>
				</td>
			</tr>
			 --%>
			<tr>
				<td colspan="2">
					<%--disabled 된 항목은 값이 넘어가지 않으므로 히든 필드로 별도로 값을 넘겨준다 --%>
					<input type="hidden" name="deptno" value="${vo.deptno }">				
					<input type="hidden" name="jobno" value="${vo.jobno }">
					<input type="hidden" name="sabun" value="${vo.sabun }">
					<input type="hidden" name="name" value="${vo.sabun }">									
					<hr color="white">
				</td>
			</tr>							
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					<font color="red">*</font>비밀번호&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="password" name="pwd">
				</td>				
			</tr>			
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					<font color="red">*</font>전화번호&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="tel" value="${vo.tel }">
				</td>				
			</tr>
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					<font color="red">*</font>휴대전화&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="hp" value="${vo.hp }">
				</td>				
			</tr>
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					팩스번호&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="fax" value="${vo.fax }">
				</td>				
			</tr>
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					이메일&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="text" name="email" value="${vo.email }">
				</td>				
			</tr>												
			<tr>
				<td width="20%" align="right" valign="top" bgcolor="ededed">
					프로필&nbsp;
				</td>
				<td width="80%" align="left">
					<input type="hidden" name="photofn" value="${vo.photofn }">
					<textarea rows="15" cols="50" name="profile">${vo.profile }</textarea>					
				</td>				
			</tr>
			<%--
			<tr>
				<td width="20%" align="right" bgcolor="ededed">
					프로필 사진&nbsp;
				</td>
				<td width="80%" align="left">					
					<input type="file" name="imgpath">										
				</td>				
			</tr>	
			 --%>			 
			<s:file name="upload" label="프로필 사진" size="50" />		
			<tr>
				<td colspan="2">
					<input type="submit" value="등록">									
					<input type="button" value="취소" onclick="javascript:this.location.href='/ssteam/index.team'">
				</td>
			</tr>						
		</table>
		</form>
		<table border=0>
			<tr>
				<td> &nbsp;
		</table>
		<br>
		
</body>
</html>